import { request } from '../request/request.js'

//获取展示所有出行人的信息
export const GetAllTravelers = (userid) => {
    return request.get(`/travelers/show?userid=${userid}`);
}
//获取单个出行人的信息详情
export const GetTravelers = (travelerid) => {
	return request.get(`/travelers/detail?travelerid=${travelerid}`)
}
//删除单个出行人的信息详情
export const deleteTravelers = (travelerid) => {
	return request.delete(`/travelers/delete?travelerid=${travelerid}`)
}
//修改单个出行人的信息详情
export const ReviseTravelers = (submitForm) => {
	return request.put(`/travelers/revise`,submitForm)
}

//新增单个出行人的信息详情
export const IntoTravelers = (itForm) => {
	return request.post(`/travelers/into`,itForm)
}
